package com.kyle.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

@Entity
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
@Table(name="user")
public class UserEntity implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Integer id;
	
	@Column(name="username",unique=false,nullable=true)
	private String username;
	
	@Column(name="password",unique=false,nullable=true)
	private String password;
	
	@Column(name="sex",unique=false,nullable=true)
	private String sex;
	
	@Column(name="truename",unique=false,nullable=true)
	private String truename;
	
	@Column(name="lastlogin",unique=false,nullable=true)
	private String lastlogin;
	
	@Column(name="tel",unique=false,nullable=true)
	private String tel;
	
	@Column(name="email",unique=false,nullable=true)
	private String email;
	
	@Column(name="deptid",unique=false,nullable=true)
	private Integer deptid;
	
	@Column(name="ismobileno",unique=false,nullable=true)
	private String ismobileno;
	
	@Column(name="deptname",unique=false,nullable=true)
	private String deptname;
	
	@Column(name="deviceId",unique=false,nullable=true)
	private String deviceId;
	
	@Column(name="title",unique=false,nullable=true)
	private String title;
	
	@Column(name="titleurl",unique=false,nullable=true)
	private String titleurl;
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getTitleurl() {
		return titleurl;
	}
	public void setTitleurl(String titleurl) {
		this.titleurl = titleurl;
	}
	public String getDeviceId() {
		return deviceId;
	}
	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}
	public String getDeptname() {
		return deptname;
	}
	public void setDeptname(String deptname) {
		this.deptname = deptname;
	}
	public String getIsmobileno() {
		return ismobileno;
	}
	public void setIsmobileno(String ismobileno) {
		this.ismobileno = ismobileno;
	}
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getTruename() {
		return truename;
	}
	public void setTruename(String truename) {
		this.truename = truename;
	}
	public String getLastlogin() {
		return lastlogin;
	}
	public void setLastlogin(String lastlogin) {
		this.lastlogin = lastlogin;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public int getDeptid() {
		return deptid;
	}
	public void setDeptid(int deptid) {
		this.deptid = deptid;
	}

	
	
}
